<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/jsp/common/common.jsp"%>
<%
	String domainId = request.getAttribute("domainId") == null?"":request.getAttribute("domainId").toString();
	String id = request.getAttribute("id") == null?"":request.getAttribute("id").toString();
%>
</head>
<body>

	<div class="documentContent" id="documentContent">

		<!-- form-box -->
		<div class="form-box">
			<h2 class="form-title">人员信息</h2>
			<div class="form-content">
				<table width="100%" border="0" cellpadding="0" cellspacing="0" class="form-table">
					<tr>
						<td class="form-table-tdleft" width="25%">人员名称：</td>
						<td width="75%"><input class="table-input" type="text" name="name" id="name" value="" /></td>
					</tr>
					<tr>	
						<td class="form-table-tdleft">人员编号：</td>
						<td><input class="table-input" type="text" name="serialNumber" id="serialNumber" value="" /></td>
					</tr>
					<tr>
						<td class="form-table-tdleft">登陆帐户名：</td>
						<td><input class="table-input" type="text" name="accountName" id="accountName" value="" /></td>
					</tr>
					<tr>	
						<td class="form-table-tdleft">登陆密码：</td>
						<td><input class="table-input" type="password" name="accountPassword" id="accountPassword" value="" /></td>
					</tr>
					<tr>
						<td class="form-table-tdleft">电子邮箱：</td>
						<td><input class="table-input" type="text" name="email" id="email" value="" /></td>
					</tr>
					<tr>	
						<td class="form-table-tdleft">手机号码：</td>
						<td><input class="table-input" type="text" name="cellphoneNumber" id="cellphoneNumber" value="" /></td>
					</tr>
					<tr>	
						<td class="form-table-tdleft">状态：</td>
						<td>
							<select class="table-input" id="state">
					  			<option value="A">启用</option>
					  			<option value="F">禁用</option>
				      	   	</select>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<!-- form-box -->
		
		<input type="hidden" name="id" id="id" value="<%=id %>" />
		<input type="hidden" name="domainId" id="domainId" value="<%=domainId %>" />

	</div>

<script type="text/javascript">

var id = '<%=id %>';
var domainId = '<%=domainId %>';


$(document).ready(function(){
	
	//getPageData();

	blindPageElement();
	
});

function blindPageElement(){
	
}

function getPageData(){
 	var url = '<%=basePath%>/webframework/monitor/systemMonitor/getOverviewData.do';
	$.ajax({
		url : url,
		type : 'post',
		dataType : 'json',
		success : function(data, textStatus, jqXHR) {
		},
		error : function(XMLHttpRequest, textStatus, errorThrown) {
		}
	});
}

function onConfrim(layerObject){
	
	var url = '<%=basePath%>/biz/ou/employee/saveEmployee.do';
	var jsonData = new Object();
	$('body').find(':input').each(function(index,element){
		var key = $(element).attr('id');
		var value = $(element).val();
		if(key){
			jsonData[key] = value;
		}
	});
	
	var jsonDataStr = JSON.stringify(jsonData);
	$.ajax({
		url : url,
		type : 'post',
		dataType : 'json',
		data:{jsonData:jsonDataStr},
		success : function(data, textStatus, jqXHR) {
			showAlert('添加成功',function(){
				layerObject.close();
			});
		},
		error : function(XMLHttpRequest, textStatus, errorThrown) {
		}
	});
	
	return true;
}
</script>
</body>
</html>